from django.urls import path, include
from rest_framework.routers import DefaultRouter

from product import views
from product.views import ProductCategoryView, UserListView, UserDetailView, UserView, ProductView
# user_detail_view, \
    # user_list_view

router = DefaultRouter()
router.register(r"user", UserView)
router.register(r'category', ProductCategoryView)

urlpatterns = [
    path("", include(router.urls)),
    path("cache_test/", views.my_view)
    # path("<slug:pk>/", ProductView.as_view()),
    # path("category/", ProductCategoryView.as_view()),
    # path("category/<slug:pk>/", ProductCategoryView.as_view(), {"argument": "value"}),
    # path("user/", user_list_view),
    # path("user/<slug:pk>/", user_detail_view),
]